package com.bilibili.dao;

import java.util.List;

import com.bilibili.dto.DanmakuInfo;
import com.bilibili.entity.Danmaku;
import com.bilibili.entity.Page;

public interface DanmakuDao {
	public int selectCountByUpId(int upId);

	public int selectCountByUpIdD(int upId);

	public List<Danmaku> selectAllByUpId(int upId);

	Page<Danmaku> selectByUpIdWithPage(int upId, int pageNum, int pageSize);

	int selectTotalRowsByUpId(int upId);

	int updateStatus(int danmakuId, int status);

	int selectTotalRowsByUpIdWithFilters(int upId, String whereClause, Object[] params);

	/**
	 * 带筛选条件的分页查询
	 */
	Page<Danmaku> selectByUpIdWithPageAndFilters(String sql, Object[] params);

	List<Danmaku> selectDanmakuByVideoId(int videoId);

	/**
	 * 查询所有评论总数
	 * 
	 * @return 评论总数
	 */
	int selectAllDanmakuNum();

	List<DanmakuInfo> selectAllDanmakuB(String content,int pageNum,int pageSize);
	
	int selectAllDanmakuBNum(String content);
	
	int deleteDanmakuB(int danmakuId);
}
